package com.sys.server.modules.controller;

import com.sys.server.common.annotation.Authentication;
import com.sys.server.common.model.R;
import com.sys.server.modules.service.WorkService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 学生作品管理模块
 *
 * @author shanbingzhen
 * @date 2022-01-28 14:17
 */
@RestController
@Authentication
@Api(tags = "学生作品展示模块")
public class WorkController {

    @Autowired
    private WorkService workService;

    @RequestMapping(value = "/getWorklist", method = RequestMethod.GET)
    @ApiOperation(value = "学生作品展示模块--获取作品列表")
    public R getWorkList(@RequestParam Long pagenum,
                         @RequestParam Long pagesize) {
        return workService.getWorkList(pagenum, pagesize);
    }

}
